#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    double x, y, y1, y2, y3, y4, y5;
    scanf("%lf", &x);

    y1 = 1e5 * 0.1;
    y2 = (2e5 - 1e5) * 0.075;
    y3 = (4e5 - 2e5) * 0.05;
    y4 = (6e5 - 4e5) * 0.03;
    y5 = (1e6 - 6e5) * 0.015;

    if (x <= 1e5)
        y = x * 0.1;
    else if (x <= 2e5)
        y = y1 + (x - 1e5) * 0.075;
    else if (x <= 4e5)
        y = y1 + y2 + (x - 2e5) * 0.05;
    else if (x <= 6e5)
        y = y1 + y2 + y3 + (x - 4e5) * 0.03;
    else if (x <= 1e6)
        y = y1 + y2 + y3 + y4 + (x - 6e5) * 0.015;
    else
        y = y1 + y2 + y3 + y4 + y5 + (x - 1e6) * 0.01;

    printf("%.2lf", y);
    return 0;
}